package cn.com.ebidding.business.entity;

import cn.com.ebidding.business.enums.UserStatusEnum;
import cn.com.ebidding.framework.object.AbstractBO;
import cn.com.ebidding.persistence.beans.SysGroup;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

public class Group extends AbstractBO {
    private SysGroup sysGroup;

    public Group() {
        this.sysGroup = new SysGroup();
    }

    public Group(SysGroup sysGroup) {
        this.sysGroup = sysGroup;
    }


    @JsonIgnore
    public SysGroup getSysGroup() {
        return this.sysGroup;
    }

    public Long getId() {
        return this.sysGroup.getId();
    }

    public void setId(Long id){
        this.sysGroup.setId(id);
    }

    public String getName() {
        return this.sysGroup.getName();
    }

    public void setName(String name) {
        this.sysGroup.setName(name);
    }

    public String getAvatar() {
        return this.sysGroup.getAvatar();
    }

    public void setAvatar(String avatar) {
        this.sysGroup.setAvatar(avatar);
    }

    public String getRemark() {
        return this.sysGroup.getRemark();
    }

    public void setRemark(String remark) {
        this.sysGroup.setRemark(remark);
    }

    public Integer getStatus() {
        return this.sysGroup.getStatus();
    }

    public void setStatus(Integer status) {
        this.sysGroup.setStatus(status);
    }

    public Long getCreateUser() {
        return this.sysGroup.getCreateUser();
    }

    public void setCreateUser(Long createUser) {
        this.sysGroup.setCreateUser(createUser);
    }

    public Long getUpdateUser() {
        return sysGroup.getUpdateUser();
    }

    public void setUpdateUser(Long updateUser) {
        this.sysGroup.setUpdateUser(updateUser);
    }

    public Date getCreateTime() {
        return this.sysGroup.getCreateTime();
    }

    public void setCreateTime(Date regTime) {
        this.sysGroup.setCreateTime(regTime);
    }

    public Date getUpdateTime() {
        return this.sysGroup.getUpdateTime();
    }

    public void setUpdateTime(Date updateTime) {
        this.sysGroup.setUpdateTime(updateTime);
    }

    public UserStatusEnum getStatusEnum() {
        return UserStatusEnum.get(this.sysGroup.getStatus());
    }

}
